import { createRouter , createWebHashHistory} from 'vue-router/dist/vue-router';

const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('../views/first_page.vue'),
    },
    {
        path: '/login_signup',
        name: 'login_signup',
        component: () => import('../views/login_signup.vue'),
    },
    {
        path: '/my_function',
        name: 'my_function',
        component: () => import('../views/my_function.vue'),
    },
    {
        path: '/toUsercenterPage',
        name: 'usercenter_page',
        component: () => import('../views/usercenter_page.vue'),
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
